package com.cloudfun.msglisten.common.model.haier;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Arrays;
import java.util.List;

/**
 * Created by Huqin on 2019/12/17
 */
@Data
@AllArgsConstructor
public class HaierWsSubReqDTO {

    private List<SubscribeData> subdata;

    @Data
    public static class SubscribeData {

        public SubscribeData(String topic, List<String> keys) {
            this.topic = topic;
            this.keys = new SubscribeDataKey(keys);
        }

        private String topic;

        private SubscribeDataKey keys;
    }

    @Data
    @AllArgsConstructor
    public static class SubscribeDataKey {
        private List<String> typeId;
    }


}
